package org.springblade.oa.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.secure.BladeUser;
import org.springblade.oa.vo.ExpenseAccount;
import org.springblade.oa.vo.PageQuery;
import org.springblade.core.mp.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * @author LK
 * @version 1.0.0
 * @Title: IExpenseAccountService.java
 * @Description: TODO    报销服务接口
 * @date 2020/1/13 11:56
 */
public interface IExpenseAccountService extends BaseService<ExpenseAccount> {

	/**
	 * 获取报销列表
	 *
	 * @param expenseAccount
	 * @param user
	 * @param pageQuery
	 * @return
	 */
	IPage<ExpenseAccount> getExpenseAccountList(ExpenseAccount expenseAccount, BladeUser user, PageQuery pageQuery);

	/**
	 * 获取项目名称列表
	 *
	 * @param eaCompany
	 * @return
	 */
	Map getProjectNameList(Integer eaCompany);


	/**
	 * 根据项目编号获取项目名称
	 */

	String getProjectName(String code);

	/**
	 * 根据项目编号获取项目名称简写
	 * @param code
	 * @return
	 */
	String getProjectAbbName(String code);

	Map getPrintData(List<Map<String, Object>> printData);

	Map<String, String> getSynthesisProject(Integer bxdid);

	List<Map<String,Object>> getUser(Map<String,Object> params);

	String getUserById(Integer userId);

}
